package com.zjp.proxy;

/**
 * @author: zjp
 * @date: 2023-12-03
 * @description: 测试动态代理
 */
public class TestProxy {
    public static void main(String[] args) {
        BigStar star = new BigStar("杨超越");
        Star starProxy = ProxyUtil.createStarProxy(star); // 得到一个代理对象
        String rs = starProxy.sing("燃烧我的卡路里");
        System.out.println(rs);
        starProxy.dance();
    }
}
